﻿@model IEnumerable<NK.Mvc3.Models.StoreInputDetail>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            ProductInfo
        </th>
        <th>
            StoreInput
        </th>
        <th>
            Quantity
        </th>
        <th>
            ExpireDate
        </th>
        <th>
            FreeQuantity
        </th>
        <th>
            CostInput
        </th>
        <th>
            TotalCost
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ProductInfo.Group)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StoreInput.StaffName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Quantity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ExpireDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FreeQuantity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CostInput)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalCost)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
